<?php
session_start();
include_once 'funcao/util.php';
exipararSessao();
include_once 'config/conexao.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Blog php</title>
<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/padrao.css" />
<link rel="stylesheet" href="cleditor/jquery.cleditor.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript" src="cleditor/jquery.cleditor.min.js"></script>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
		<?php include_once 'header.php';?>
		</div>
		<div class="row">
		<?php include_once 'navegacao.php';?>
		</div>
		<div class="row">
			<div class="col-lg-2">
			<?php include_once 'menu.php'; ?>
			</div>
			<div class="col-lg-7">
				<div class="conteudo">
				<?php
				include_once 'msg.php';
				$page = $_GET ['pag'];
				if (file_exists ( 'view/' . $page . '.phtml' )) {
					include_once 'view/' . $page . '.phtml';
				}else{
					include_once 'view/noticias.phtml';
				}
				?>
					<div class="row">
						<div class="col-lg-6">
							<div class="fb-share-button"
								data-href="https://www.facebook.com/pages/Blog-php/589000007896785"
								data-layout="button_count"></div>
							<a href="https://twitter.com/blogPhp"
								class="twitter-follow-button" data-show-count="false"
								data-lang="pt">Seguir @blogPhp</a>
							<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
						</div>
					</div>
				</div>
			</div>
			<div class="col-lg-3">
				<div class="row rede-social">
				<?php include_once 'twiter.php';?>
				</div>
				<div class="row rede-social">
				<?php include_once 'facebook.php';?>
				</div>
			</div>
		</div>
		<div class="row footer">
			<p class="text-center">Desenvolvido por @antonioAllan e
				@jonataAlmeida</p>
		</div>
	</div>
</body>
</html>